#!bin/bash
now_time=$(date +%Y%m%d)
for i in $(ls $1)
	do
		echo $i
		if [[ $i == *$now_time* ]];then
			#echo "备份成功"
			sendemail -f 发件邮箱@163.com -t "收件邮箱@qq.com" -s smtp.163.com -u '快照备份成功通知' -o message-content-type=text -o message-charset=utf8 -xu 发件邮箱@163.com -xp 发件邮箱授权码7 -m "xxxxx，本次快照备份成功"
			break
		else
			echo "备份失败"
			
		fi

	done
